package com.zuipin.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zuipin.entity.product.ProductArea;
import com.zuipin.mapper.ProductAreaMapper;
import com.zuipin.service.IProductAreaService;

/**
 * 商品可售区域业务类实现
 *
 * @ClassName ProductAreaServiceImpl 
 * @author wangcongyi
 * @date 2017年5月8日 下午6:11:13
 */
@Service
public class ProductAreaServiceImpl implements IProductAreaService {

	@Resource
	private  ProductAreaMapper productAreaMapper;
	
	@Override
	public int deleteByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return productAreaMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ProductArea record) {
		// TODO Auto-generated method stub
		return productAreaMapper.insert(record);
	}

	@Override
	public boolean insertSelective(ProductArea record) {
		// TODO Auto-generated method stub
		return productAreaMapper.insertSelective(record);
	}

	@Override
	public ProductArea selectByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return productAreaMapper.selectByPrimaryKey(id);
	}

	@Override
	public boolean updateByPrimaryKeySelective(ProductArea record) {
		// TODO Auto-generated method stub
		return productAreaMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ProductArea record) {
		// TODO Auto-generated method stub
		return productAreaMapper.updateByPrimaryKey(record);
	}

}
